<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/popup/head.jsp"%>

<script type="text/javascript">

	$(document).ready(function() {
		$("#mainForm").validate();
	});

	function clickBtn(action){
		switch(action){
		case "saveIntoTrolley":
			  CE.close();
			  return;
			  
		case "back":
			  CE.close();
			  return;
		}

		$("#mainForm").submit();  
	}
</script>

<div class="content"> 							
	<div class="form2">
				
	  <div class="pageTitle">Publish Information - View</div><br>
	  
	  <s:actionerror/>
	  <s:fielderror/>
	  <s:actionmessage/> 
	  
	  <s:form id="mainForm" name="mainForm" namespace="/publish" action="search.action" validate="true" target="parent">
	  	<s:hidden name="infoPublish.id"></s:hidden>
	  	
	    <table border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td class="sep" ><img src="../images/spacer.gif" style="width:180px;" /></td>
	        <td class="sep" ><img src="../images/spacer.gif" style="width:180px;" /></td>
	      </tr>
	      <tr>
	          <td>
	        	  <label class="fLabel" >发布类型:</label>
	        	  <label class="fField" ><s:property value="infoPublish.type"/></label>
	          </td>
	        <td>
	              <label class="fLabel" >标题:</label>
	       		  <label class="fField" ><s:property value="infoPublish.title"/></label>
	      </tr>
	      <tr>
	          <td colspan="2">
	          	   <label class="fLabel" >联系方式:</label>
	          	   <label class="fField" ><s:property value="infoPublish.contactWay"/></label>
	          </td>
	          
	      </tr>    
	      <tr>
	        <td colspan="2"><label class="fLabel" >发布信息:</label>
	          <div class="fField">
	            <s:textarea cssStyle="width:500px; height:100px" name="infoPublish.content" cssClass="inputTextarea" readonly="readonly"></s:textarea>
	          </div></td>
	          
	      </tr>
	    </table>
	    
	    <div class="btnSet btnSetTypeA">
	      <div class="left" >
	      
	        <div class="button" >
	          <div class="left" >
	            <div class="right" >
	              <input class="inputButton" type="button" id="saveBtn" name="save" value="添加到临时购物车" onclick="clickBtn('saveIntoTrolley')"/>
	            </div>
	          </div>
	        </div>
	        
			<div class="button">
	           <div class="left">
	             <div class="right">
	               <input type="button" onclick="clickBtn('back')" value="返回" name="" id="" class="inputButton">
	             </div>
	           </div>
	         </div> 
	           
	      </div>
	    </div>
	   </s:form>

	</div>
</div>
      	
<%@ include file="/common/popup/foot.jsp"%>  